home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 3 / BBS in a box - Trilogy III.iso / Files / Bus / C / Commander Demo / Commander Demo.rsrc / TEXT_5035_Before selection.txt < prev    next >
Encoding:
Text File  |  1993-09-07  |  1.3 KB  |  31 lines

  1. Before¬†selection ({file}) -> Boolean
  2.                                                                                     Pg 40-11
  3.  
  4. file       File     File for which to test if before selection
  5.  
  6.  
  7. Before selection returns True when the current record pointer is before the first record in the selection of file. This can happen when the command PREVIOUS¬†RECORD is called while the first record is current. Also returns True if the current selection of file is empty.
  8.  
  9. Before selection is commonly used to check whether PREVIOUS¬†RECORD has moved the current record pointer before the first record.
  10.  
  11. Before selection also returns ¬†True in the first header when a report is being printed with PRINT¬†SELECTION or from the Print menu. You can use the following statement to test for the first header, and print a special header for the first page:
  12.  
  13.        If (In header & Before selection)
  14.  
  15.  
  16.  
  17. The procedure in the following example is used during the printing of a report. It sets a variable, vTitle, to print in the Header area on the first page:
  18.  
  19.  
  20.    If (In header & Before selection ([Finances]))     
  21.                      `  If first page of a report, set title
  22.      vTitle := "Corporate Report 1988"    ` Set the title for the first page
  23.    Else
  24.      vTitle :=""       ` Clear the title for all other pages
  25.    End if
  26.  
  27.  
  28.  
  29. See also: In¬†header, PREVIOUS¬†RECORD, PRINT¬†SELECTION
  30.  
  31.